﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MbUnit.Framework;
using fit;

namespace Frost.Tests.TestEnvironmentSpecs  {
    [TestFixture]
    public class when_test_environment_starts {
        TestEnvironment _environment;

        [SetUp]
        public void SetUp() {
            _environment = new TestEnvironment("Frost*dll");    
        }

        [Test]
        public void should_instantiate_container() {
            _environment.Container.ShouldNotBeNull();
        }

        [Test]
        public void should_find_fit_fixtures() {
            var testFixture = _environment.Container.Resolve<FindThisFixture>();
            testFixture.ShouldNotBeNull();
        }
    }

    public class FindThisFixture : RowFixture {

        public override object[] query() {
            throw new NotImplementedException();
        }

        public override Type getTargetClass() {
            throw new NotImplementedException();
        }
    }
}
